package com.yeban.javase.day12.demo;

import java.util.function.Consumer;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/22
 */
public class TestConsumerAndThen {
    public static void main(String[] args) {
        cosumerAndthen(s-> System.out.println(s),s-> System.out.println(s.toLowerCase()));
    }

    private static void cosumerAndthen(Consumer<String> one, Consumer<String> two){
        one.andThen(two).accept("Hello World");
    }
}
